package com.s.remotelog;

import android.util.Log;

class LocalLog {

    /**
     * For different level colors
     */
    private final static String ANSI_RESET      = "\u001B[0m";
    private final static String ANSI_BLACK      = "\u001B[30m";
    private final static String ANSI_RED        = "\u001B[31m";
    private final static String ANSI_GREEN      = "\u001B[32m";
    private final static String ANSI_YELLOW     = "\u001B[33m";
    private final static String ANSI_BLUE       = "\u001B[34m";
    private final static String ANSI_PURPLE     = "\u001B[35m";
    private final static String ANSI_CYAN       = "\u001B[36m";
    private final static String ANSI_WHITE      = "\u001B[37m";

    public static void i(String tag, String msg) {
        Log.i(tag, msg);
    }

    public static void d(String tag, String msg) {
        Log.d(tag, ANSI_GREEN + msg + ANSI_RESET);
    }

    public static void w(String tag, String msg) {
        Log.w(tag, ANSI_BLUE + msg + ANSI_RESET);
    }

    public static void e(String tag, String msg) {
        Log.e(tag, ANSI_RED + msg + ANSI_RESET);
    }
}
